package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Role;

import java.util.List;

/**
 * @author ：lyj
 * @date ：Created in 2020/1/2 0002
 * @description ：角色业务层接口
 * @version: 1.0
 */
public interface RoleService {
    void add(Role role, Integer[] permissionIds);

    PageResult pageQuery(QueryPageBean queryPageBean);

    Role findById(Integer id);

    List<Integer> findpermissionIdsByCheckRoleId(Integer id);

    void edit(Role role, Integer[] permissionIds);

    List<Role> findAll();

    void delete(Integer id);
}
